<template>
  <div class="dashboard-container">
    <div class="dashboard-text">name: {{ this.$store.getters.name }}</div>
    <div class="a" />
    <div class="b" />
    <div class="c" />
    <svg-icon icon-class="eye" />
    <svg-icon :icon-class="'tree'" />
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;
  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}
// 混合语法
// @mixin 名字 {样式}
// @include 名字
@mixin aa {
  width: 100px;
  height: 100px;
  margin: 5px;
  transition: all 1s;
  &:hover{
    transform: translateY(10px)
  }
}
.a{
  @include aa;
  background-color: pink;
}
.b{
  @include aa;
  background-color: skyblue;
}
.c{
  @include aa;
  background-color: yellow;
}
</style>
